<?

function createVerticalTable($dataArray){
// $keys=$dataArray[0];
	// foreach($dataArray as $key=>$value){

	// }
}
function createHorizontalTable($dataArray){
$output="<table class='htmltable horizontaltable'>";
	$output.="<tr>";
		foreach($dataArray[0] as $key=>$value){
		$output.="<th>".$key."</th>";
		}
	$output.="</tr>";
	foreach($dataArray as $key=>$value){
	$output.="<tr>";
		foreach($value as $key1=>$value1){
		$output.="<td>".$value1."</td>";
		}
	$output.="</tr>";
	}
return $output.="</table>";
}
?>